Skip to content

feat(telemetry): Telemetry for Seaweed#194

Open
jthakkar04 wants to merge 2 commits into
v2from
jthakkar/seaweed-telemetry
Open

feat(telemetry): Telemetry for Seaweed#194
jthakkar04 wants to merge 2 commits into
v2from
jthakkar/seaweed-telemetry

Conversation

@jthakkar04
Copy link
Copy Markdown

@jthakkar04 jthakkar04 commented May 29, 2026

Summary of Issue

JIRA: https://coreweave.atlassian.net/browse/ONPREM-205

What this does

  • Sets MetricsPort on the master/volume/filer specs in the Seaweed CR so each component actually starts a /metrics HTTP server.
  • Updates the Object Store panels in the install + overview dashboards to use SeaweedFS metric names instead of minio_* queries (SeaweedFS_volumeServer_resource for capacity and SeaweedFS_filer_request_total for the rate).
  • Adds prometheus-operator-crds v29.0.0 as a chart dep with only the ServiceMonitor CRD enabled, plus an RBAC binding for the seaweedfs-operator's ServiceAccount. We had to add this because the seaweedfs-operator tries to create a ServiceMonitor for each Seaweed component during reconcile, and without the CRD installed it errors out before reaching volume/filer — so only the master pod ever comes up.

Tests

Spun up the kind cluster:

./hack/scripts/setup_kind.sh ; tilt up

Saw traffic on Dashboard:
Screenshot 2026-05-29 at 3 23 16 PM

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 29, 2026

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jthakkar/seaweed-telemetry

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@casey-coreweave casey-coreweave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM

Comment thread internal/controller/infra/managed/objectstore/seaweedfs/spec.go Outdated
jthakkar04 and others added 2 commits May 29, 2026 16:06
Sets MetricsPort on master/volume/filer in the Seaweed CR and
replaces the broken `seaweedfs` VMPodScrape with three new ones that
actually scrape the per-component metrics ports. Then swaps the
leftover MinIO queries in the install + overview dashboards for
`SeaweedFS_volumeServer_resource` (capacity) and
`SeaweedFS_filer_request_total` (rate).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…erator

The seaweedfs-operator tries to create `ServiceMonitor` resources
during reconcile, but our cluster doesn't have that CRD installed
(we use VictoriaMetrics, not prometheus-operator), so its reconciler
errors after master and volume/filer never come up. Adds the
prometheus-operator-crds chart dep with just the ServiceMonitor CRD
enabled plus an RBAC binding for the operator's ServiceAccount — the
VictoriaMetrics operator auto-converts those ServiceMonitors to
VMServiceScrapes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jthakkar04 jthakkar04 force-pushed the jthakkar/seaweed-telemetry branch from 27f027a to 66ac6f5 Compare May 29, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants